package gitee.derumin.really_forge;

import gitee.derumin.really_forge.block_entities.AnvilBlockEntity;
import gitee.derumin.really_forge.enchantments.RFEnchantments;
import gitee.derumin.really_forge.items.RFItems;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.object.builder.v1.block.entity.FabricBlockEntityTypeBuilder;
import net.minecraft.block.Blocks;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;

public class Really_forge implements ModInitializer {
    /**
     * Runs the mod initializer.
     */

    public static final BlockEntityType<AnvilBlockEntity> ANVIL_BLOCK_ENTITY = Registry.register(
            Registries.BLOCK_ENTITY_TYPE,
            new Identifier("really_forge","anvil_block_entity"),
            FabricBlockEntityTypeBuilder.create(AnvilBlockEntity::new, Blocks.ANVIL,Blocks.CHIPPED_ANVIL,Blocks.DAMAGED_ANVIL).build());

    @Override
    public void onInitialize() {
        RFItems.init();
        RFEnchantments.init();
    }
}
